<!--{if $list}-->
	<!--{if $select_form}-->
		<p class="tbmu">
			{lang sorting}:
			<select id="mySelect" onchange="select_form()">
			  <option value="uid" {$order_selected['uid']}>{lang top_orderby_uid}</option>
			  <option value="posts" {$order_selected['posts']}>{lang top_orderby_posts}</option>
			  <option value="blogs" {$order_selected['blogs']}>{lang top_orderby_blogs}</option>
			  <option value="credits" {$order_selected['credits']}>{lang top_orderby_credits}</option>
			</select>
			<script type="text/javascript">
				function select_form() {
					x = $('mySelect');
					y = x.options[x.options.selectedIndex].value;
					location.href = location.href.replace(/\&select.*/, '') +  '&select=' + y;
				}
			</script>
		</p>
	<!--{/if}-->
	<!--{if $postsrank_change}-->
	<p id="orderby" class="tbmu">
		<a href="javascript:;" id="posts"{if $now_choose == 'posts'} class="a"{/if}>{lang member_posts_num}</a><span class="pipe">|</span>
		<a href="javascript:;" id="digestposts"{if $now_choose == 'digestposts'} class="a"{/if}>{lang digest_num}</a><span class="pipe">|</span>
		<a href="javascript:;" id="thismonth"{if $now_choose == 'thismonth'} class="a"{/if}>{lang posts_last_30days}</a><span class="pipe">|</span>
		<a href="javascript:;" id="today"{if $now_choose == 'today'} class="a"{/if}>{lang posts_last_24hours}</a>
	</p>
	<script type="text/javascript">changeOrderRange('orderby');</script>
	<!--{/if}-->
	<div class="xld xlda">
		<!--{loop $list $key $value}-->
		<dl class="bbda cl">
			<dd class="m avt"><a href="home.php?mod=space&uid=$value[uid]" target="_blank" c="1"><!--{avatar($value[uid],small)}--></a></dd>
			<dt class="y">
				<p class="xw0"><a href="home.php?mod=space&uid=$value[uid]" target="_blank">{lang visit_friend}</a></p>
				<p class="xw0"><a href="home.php?mod=spacecp&ac=poke&op=send&uid=$value[uid]" id="a_poke_$key" onclick="showWindow(this.id, this.href, 'get', 0);" title="{lang say_hi}">{lang say_hi}</a></p>
				<p class="xw0"><a href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$value[uid]&touid=$value[uid]&pmid=0&daterange=2" id="a_sendpm_$key" onclick="showWindow('showMsgBox', this.href, 'get', 0)">{lang send_pm}</a></p>
				<!--{if isset($value['isfriend']) && !$value['isfriend']}--><p class="xw0"><a href="home.php?mod=spacecp&ac=friend&op=add&uid=$value[uid]" id="a_friend_$key" onclick="showWindow('friend_$key', this.href, 'get', 0)" title="{lang add_friend}">{lang add_friend}</a></p><!--{/if}-->
			</dt>
			<dt>
				<a href="home.php?mod=space&uid=$value[uid]" title="$value[username]" target="_blank"{eval g_color($value[groupid]);}>$value[username]</a>
				<!--{if $ols[$value[uid]]}--><img src="{IMGDIR}/ol.gif" alt="online" title="{lang online}" class="vm" /> <!--{/if}--> <!--{if $value['videophotostatus']}-->&nbsp;<img src="{IMGDIR}/videophoto.gif" style="vertical-align:middle;" title="{lang video_certification} {lang profile_certified}" /><!--{/if}-->
			</dt>
			<dd>
				<p>
					{$_G['cache']['usergroups'][$value['groupid']]['grouptitle']} <!--{eval g_icon($value[groupid]);}-->
					<!--{if $value['credits']}-->&nbsp;{lang credit_num}: $value[credits]<!--{/if}-->
					<!--{if $value['posts']}-->&nbsp;{lang posts_num}: $value[posts]<!--{/if}-->
					<!--{if $value['blogs']}-->&nbsp;{lang blogs_num}: $value[blogs]<!--{/if}-->
					<!--{if $value['views']}-->&nbsp;{lang task_applies}: $value[views]<!--{/if}-->
				</p>

				<!--{if $value['friends']}--><p>{lang friends_num}: $value[friends]</p><!--{/if}-->
				<!--{if $value['lastactivity']}--><p>{lang last_activity}: $value[lastactivity]</p><!--{/if}-->
				<!--{if $value['show_credit']}--><p>{lang show_credit}{$extcredits[$creditid][title]}: $value[show_credit] {$extcredits[$creditid][unit]}</p><!--{/if}-->
				<!--{if $value['show_note']}--><p>{lang show_credit_note}: $value[show_note]</p><!--{/if}-->
				<!--{if $value['spacenote']}--><p>$value[spacenote]</p><!--{/if}-->
			</dd>
		</dl>
		<!--{/loop}-->
		<!--{if $multi}--><div class="bm bw0 pgs cl">$multi</div><!--{/if}-->
	</div>
<!--{else}-->
	<div class="emp">{lang no_members_of}</div>
<!--{/if}-->